package com.szdvte.news.bean;

public class NewsCollect {
	private Integer newsCollectId;
	private Integer newsCollectNewsId;
	private Integer newsCollectUserId;
	public NewsCollect() {
	}
	public NewsCollect(Integer newsCollectId, Integer newsCollectNewsId,
			Integer newsCollectUserId) {
		this.newsCollectId = newsCollectId;
		this.newsCollectNewsId = newsCollectNewsId;
		this.newsCollectUserId = newsCollectUserId;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((newsCollectId == null) ? 0 : newsCollectId.hashCode());
		result = prime
				* result
				+ ((newsCollectNewsId == null) ? 0 : newsCollectNewsId
						.hashCode());
		result = prime
				* result
				+ ((newsCollectUserId == null) ? 0 : newsCollectUserId
						.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		NewsCollect other = (NewsCollect) obj;
		if (newsCollectId == null) {
			if (other.newsCollectId != null)
				return false;
		} else if (!newsCollectId.equals(other.newsCollectId))
			return false;
		if (newsCollectNewsId == null) {
			if (other.newsCollectNewsId != null)
				return false;
		} else if (!newsCollectNewsId.equals(other.newsCollectNewsId))
			return false;
		if (newsCollectUserId == null) {
			if (other.newsCollectUserId != null)
				return false;
		} else if (!newsCollectUserId.equals(other.newsCollectUserId))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "NewsCollect [newsCollectId=" + newsCollectId
				+ ", newsCollectNewsId=" + newsCollectNewsId
				+ ", newsCollectUserId=" + newsCollectUserId + "]";
	}
	public Integer getNewsCollectId() {
		return newsCollectId;
	}
	public void setNewsCollectId(Integer newsCollectId) {
		this.newsCollectId = newsCollectId;
	}
	public Integer getNewsCollectNewsId() {
		return newsCollectNewsId;
	}
	public void setNewsCollectNewsId(Integer newsCollectNewsId) {
		this.newsCollectNewsId = newsCollectNewsId;
	}
	public Integer getNewsCollectUserId() {
		return newsCollectUserId;
	}
	public void setNewsCollectUserId(Integer newsCollectUserId) {
		this.newsCollectUserId = newsCollectUserId;
	}
}
